#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
numl = [1, 3, 5, 7, 9, 11, 23, 33, 44, 112, 115, 125, 136, 147, 199]
search_num = 11


def the_search(search_list, num):
    # xxx = search_list.index(num)
    mid_index = len(search_list) // 2
    if len(search_list) == 0:
        print("并没有")
        return
    if num > search_list[mid_index]:
        n = search_list[mid_index + 1:]
        print("大", n)
        the_search(n, num)
    elif num < search_list[mid_index]:
        n = search_list[0:mid_index + 1]
        print("小", n)
        the_search(n, num)
    else:
        print("找着了")


the_search(numl, 2222)
